﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x0200008B RID: 139
	internal class InvalidSByte : ISByteDecoder
	{
		// Token: 0x0600025A RID: 602 RVA: 0x0000B433 File Offset: 0x00009833
		private InvalidSByte()
		{
		}

		// Token: 0x0600025B RID: 603 RVA: 0x0000B43B File Offset: 0x0000983B
		public sbyte Read(byte[] bytes, int offset, out int readSize)
		{
			throw new InvalidOperationException(string.Format("code is invalid. code:{0} format:{1}", bytes[offset], MessagePackCode.ToFormatName(bytes[offset])));
		}

		// Token: 0x040000B1 RID: 177
		internal static readonly ISByteDecoder Instance = new InvalidSByte();
	}
}
